wayland: Do not close the descriptor on async_write_data_free()
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Jun 2015 17:53:39 +0000 (19:53 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Jun 2015 21:52:50 +0000 (23:52 +0200)
commit69b5955108a794c0aab8872d1bffab2a5f820d8c
tree31aed29873b94cf95aa4e39943de7dc9ac22978f
parentd3212c9b46cba09ec2c0ea2f9c02d9a92acbbc45
wayland: Do not close the descriptor on async_write_data_free()

At the moment we create the AsyncWriteData, the ownership of the
fd is granted to the GOutputStream, and the fd set to -1, so at
this moment we're just silently getting EBADFD.

This partially reverts 25885ca600fff, the initialization of .fd
to -1 is valid and stays though.

https://bugzilla.gnome.org/show_bug.cgi?id=751414
gdk/wayland/gdkselection-wayland.c